import request from '@/api/request';
import { AxiosPromise } from 'axios';
import { AuthorVO } from './types';

export function getAuthorDetailById(id: number): AxiosPromise<AuthorVO> {
  return request({
    url: `/api/v1/author/${id}`,
    method: 'get'
  });
}
